<?php 
require_once '../function/db_conn.php';

$_oldPass  = $_GET['password'];
$_username  = $_GET['username'];

$sql = "select password from member where username = '$_username';";
$result = mysql_query($sql) or die('Error: ' . mysql_error());
for( $i = 0; $row = mysql_fetch_row($result); $i++){
	foreach($row as $key =>$value){
		if($key == 0){
			if($value == md5($_oldPass)){
				echo "true";
			}
			else{
				echo "false";
			}
		}
	}
}	

?>